﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntGuayasSLA.BL
{
    public class Dynamic
    {
        private Dictionary<string, string> dictionary = new Dictionary<string, string>();
        public Dictionary<string, string> Dictionary
        {
            get { return dictionary; }
        }
        public void Add(string key, string value)
        {

            if (dictionary.ContainsKey(key))
            {
                dictionary[key] = value;
            }
            else
            {
                dictionary.Add(key, value);
            }
        }
        public string Get(string key)
        {
            return dictionary.ContainsKey(key) ? dictionary[key] : null;
        }

    }
}
